home *** CD-ROM | disk | FTP | other *** search
- function brandEnabler(loaderName)
- {
- navPress_mc.buttons_mc[loaderName].hitVal = 1;
- navPress_mc.buttons_mc[loaderName].hit_mc.enabled = false;
- navPress_mc.buttons_mc[prevName].hit_mc.enabled = true;
- navPress_mc.buttons_mc[prevName].hit_mc.colorTo(0,0.3,"easeOutSine");
- navPress_mc.buttons_mc[prevName].name_txt.colorTo(16770048,0.3,"easeOutSine");
- navPress_mc.buttons_mc[prevName].arrow_txt.colorTo(16777215,0.3,"easeOutSine");
- navPress_mc.buttons_mc[prevName].loadBar_mc.tween("_width",0,0.3,"easeInSine");
- prevName = loaderName;
- }
- stop();
- nodeCount_var = 1;
- headingSub_txt.text = "CLICK TO DOWNLOAD";
- imageCharSub_mc.alphaTo(0,0.3,"easeInQuad",0.6);
- imageCharSub_mc.colorTo(16777215,0.3,"easeInQuad",0.4);
- imageCharMain_mc.alphaTo(0,0.3,"easeInQuad",0.4);
- imageCharMain_mc.colorTo(16777215,0.3,"easeInQuad",0.2);
- imageLogoMain_mc.alphaTo(0,0.3,"easeInQuad",0.2);
- imageLogoMain_mc.colorTo(16777215,0.3,"easeInQuad");
- var Bspacing = 1;
- b = 0;
- while(b < imageTotal)
- {
- imageTotal = content_xml.firstChild.childNodes[1].childNodes.length;
- btnFile = content_xml.firstChild.childNodes[1].childNodes[b].attributes.ref;
- btnRoll = content_xml.firstChild.childNodes[1].childNodes[b].firstChild.nodeValue;
- btnName = content_xml.firstChild.childNodes[1].childNodes[b].attributes.title;
- if(b == 0)
- {
- var butName = "button" + b + "_mc";
- navPress_mc.buttons_mc.attachMovie("buttonP",butName,b);
- navPress_mc.buttons_mc[butName]._alpha = 0;
- navPress_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
- navPress_mc.buttons_mc[butName].name_txt.html = true;
- navPress_mc.buttons_mc[butName].name_txt.autoSize = "left";
- navPress_mc.buttons_mc[butName].name_txt.wordWrap = true;
- navPress_mc.buttons_mc[butName].name_txt.htmlText = btnName;
- navPress_mc.buttons_mc[butName].HRLink = btnRoll;
- navPress_mc.buttons_mc[butName].PLink = btnFile;
- navPress_mc.buttons_mc[butName].PNum = b;
- }
- else
- {
- var butName = "button" + b + "_mc";
- navPress_mc.buttons_mc.attachMovie("buttonP",butName,b);
- navPress_mc.buttons_mc[butName]._alpha = 0;
- navPress_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
- var buttonsHeight = Math.round(navPress_mc.buttons_mc._height);
- var y = Bspacing;
- navPress_mc.buttons_mc[butName].name_txt.autoSize = "left";
- navPress_mc.buttons_mc[butName].name_txt.wordWrap = true;
- navPress_mc.buttons_mc[butName].name_txt.html = true;
- navPress_mc.buttons_mc[butName].name_txt.htmlText = btnName;
- navPress_mc.buttons_mc[butName]._y = y + buttonsHeight;
- navPress_mc.buttons_mc[butName].HRLink = btnRoll;
- navPress_mc.buttons_mc[butName].PLink = btnFile;
- navPress_mc.buttons_mc[butName].PNum = b;
- }
- if(b == imageTotal - 1)
- {
- if(navPress_mc.buttons_mc._height > 300)
- {
- navPress_mc.gotoAndStop(2);
- }
- }
- b++;
- }
-